package com.yys.apm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author yeys3
 * @since 2020-08-23
 */
@TableName("cmp_pub_city")
public class PubCity extends Model<PubCity> {

    private static final long serialVersionUID=1L;

    @TableId(value = "city_id", type = IdType.NONE)
    private Integer cityId;

    private Integer provinceId;

    private Integer activeFlag;

    private String cityName;

    private String descname;

    private Integer areaCode;


    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getActiveFlag() {
        return activeFlag;
    }

    public void setActiveFlag(Integer activeFlag) {
        this.activeFlag = activeFlag;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDescname() {
        return descname;
    }

    public void setDescname(String descname) {
        this.descname = descname;
    }

    public Integer getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(Integer areaCode) {
        this.areaCode = areaCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.cityId;
    }

    @Override
    public String toString() {
        return "PubCity{" +
        "cityId=" + cityId +
        ", provinceId=" + provinceId +
        ", activeFlag=" + activeFlag +
        ", cityName=" + cityName +
        ", descname=" + descname +
        ", areaCode=" + areaCode +
        "}";
    }
}
